package com.example.liang.basamovie.utils;

import android.view.animation.Animation;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;

/**
 * Created by hudongwx on 17-2-17.
 */
public class MyAnimation {
    public static void SetAnimation(ImageView imageView){
        Animation animation=new ScaleAnimation(1f,1.5f,1f,1.5f,Animation.RELATIVE_TO_SELF,0.5f,Animation.ABSOLUTE,0.5f);
                  animation.setDuration(1000);
        imageView.startAnimation(animation);
    }
}
